/*
 ============================================================================
 Name		: MusicInterceptContainer1.cpp
 Author		:  
 Copyrigh	: Your copyright notice
 Description	: CMusicInterceptContainer1 implementation
 =========================================================================== 
 */

// INCLUDE FILES
#include "MusicInterceptContainer1.h"

// ========================= MEMBER FUNCTIONS ==================================


// -----------------------------------------------------------------------------
// CMusicInterceptContainer1::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMusicInterceptContainer1* CMusicInterceptContainer1::NewL(const TRect& aRect)
	{
	CMusicInterceptContainer1* self = CMusicInterceptContainer1::NewLC(aRect);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CMusicInterceptContainer1::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CMusicInterceptContainer1* CMusicInterceptContainer1::NewLC(const TRect& aRect)
	{
	CMusicInterceptContainer1* self = new (ELeave) CMusicInterceptContainer1;
	CleanupStack::PushL(self);
	self->ConstructL(aRect);
	return self;
	}

// -----------------------------------------------------------------------------
// CMusicInterceptContainer1::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CMusicInterceptContainer1::ConstructL(const TRect& aRect)
	{
	CreateWindowL();
	SetRect(aRect);
	ActivateL();
	}

// -----------------------------------------------------------------------------
// CMusicInterceptContainer1::CountComponentControls() const
// returns number of controls inside this container.
// -----------------------------------------------------------------------------
//
TInt CMusicInterceptContainer1::CountComponentControls() const
	{
	return 0;
	}

// -----------------------------------------------------------------------------
// CMusicInterceptContainer1::ComponentControl() const
// returns pointer of controls inside this container
// -----------------------------------------------------------------------------
//
CCoeControl* CMusicInterceptContainer1::ComponentControl(TInt /*aIndex*/) const
	{
	return NULL;
	}

// -----------------------------------------------------------------------------
// CMusicInterceptContainer1::Draw() const
// Draws the display
// -----------------------------------------------------------------------------
//
void CMusicInterceptContainer1::Draw(const TRect& aRect) const
	{
	CWindowGc& gc = SystemGc();
	gc.SetPenStyle(CGraphicsContext::ENullPen);
	gc.SetBrushColor(KRgbBlue);
	gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
	gc.DrawRect(aRect);
	}

// End of File

